/**
 * @Version 1.0.0
 * @Author ZhenYuTsai
 * @Descripttion 
 * @Date 2021-12-27 17:03:32
 * @LastEditors ZhenYuTsai
 */
const app = getApp()
import request from '../utils/request.js';
const baseUrl = app.env.BASE_URL
module.exports = {
    // 查询房间信息
    recordRoomInfo(data) {
        return request(baseUrl + '/video/record/room/info', true, {
            method: 'GET',
            data: data
        })
    },
    // 加入房间
    applyAddPromoter(data) {
        return request(baseUrl + '/video/join/room/auth', true, {
            method: 'POST',
            data: data
        })
    },
    // 开始/结束视频
    recordRoomVideo(data) {
        return request(baseUrl + '/video/record/room/video', false, {
            method: 'POST',
            data: data
        })
    }
}